package com.a.html5nfc;

import com.phonegap.DroidGap;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

public class Html5nfcActivity extends DroidGap {
    /** Called when the activity is first created. */
	Button read,write;
	TextView display;
	Activity activity;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.loadUrl("file:///android_asset/www/index.html");
//        activity = this;
//        setContentView(R.layout.main);
////        read = (Button) findViewById(R.id.bRead);
//        write = (Button) findViewById(R.id.bWrite);
//        display = (TextView) findViewById(R.id.tvDisplay);
//        display.setText("To read nfc tag just make a contact!");
////        read.setOnClickListener(new View.OnClickListener() {
////			
////			@Override
////			public void onClick(View v) {
////				// TODO Auto-generated method stub
////				display.setText("Read NFC function here");
////				
////			}
////		});
//        write.setOnClickListener(new View.OnClickListener() {
//			
//			@Override
//			public void onClick(View v) {
//				// TODO Auto-generated method stubi
//				Intent intent = new Intent();
//				intent.setClass(activity, NFCWriterActivity.class);
//				startActivity(intent);
//				//display.setText("Write NFC function here");
//			}
//		});        
    }

}